#ifndef _LOG_H_
#define _LOG_H_

#include<iostream>
#include<string>
#include<ctime>
enum Level
{
    Debuge=0,
    Notice,
    Warning,
    Error
};
const std::string msg[] = {
    "Debug",
    "Notice",
    "Warning",
    "Error"
};
std::ostream& Log(std::string message,int level)
{
    std::cout << " | " << (unsigned)time(nullptr) << " | " << msg[level] << " | " << message;
    return std::cout;
}
#endif